<?php /*a:2:{s:76:"D:\phpStudy\WWW\tp5\application\admin\view\admin_teacher\teacher_update.html";i:1548746683;s:58:"D:\phpStudy\WWW\tp5\application\admin\view\admin\head.html";i:1550326401;}*/ ?>
 <!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>广州商学院lms-后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="/static/lib/layui/css/layui.css" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" src="/static/js/jquery.js"></script>
    <script type="text/javascript" src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div style="padding: 20px;">
    <form>
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="username" class="layui-input" value="<?php echo htmlentities($teacher['username']); ?>">
            </div>
            <div class="layui-form-mid layui-word-aux">
                这将是你唯一用户名
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-inline">
                <input type="text" name="realname" class="layui-input" value="<?php echo htmlentities($teacher['realname']); ?>">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机</label>
            <div class="layui-input-inline">
                <input type="text" name="tel" class="layui-input" value="<?php echo htmlentities($teacher['tel']); ?>">
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-inline">
                <input type="text" name="email" class="layui-input" value="<?php echo htmlentities($teacher['email']); ?>">
            </div>

        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" type="submit" onclick="add()">立即提交</button>
            </div>
        </div>
    </form>
</div>
<script>
    function add() {
        event.preventDefault();
        $.ajax({
            url: "",
            type: 'post',
            datatype: 'json',
            data: $('form').serialize(),
            success: function (data) {
                if (data.statu == 200) {
                    layer.alert(data.msg, {icon: 6}, function () {
                        // 获得frame索引
                        var index = parent.layer.getFrameIndex(window.name);
                        //关闭当前frame
                        parent.layer.close(index);
                    })
                } else {
                    layer.msg(data.msg);
                }
            }
        })
    }
</script>
</body>
</html>